/**
 * 
 */
package sg.edu.nus.iss.team8s.vmcs.payment;

/**
 * @author Wang Shi Jie
 *
 */
public class CashcardInputListener {
	private PaymentMode paymentMode;
	
	public CashcardInputListener(){
		System.out.println("<CashcardInputListener> - constructor() : create new CashcardInputListener");
	}
	
	public void actionPerformed(){
		System.out.println("<CashcardInputListener> - actionPerformed() : actionPerformed");
		paymentMode.handlePayment();
	}
	
	public void register(PaymentMode paymentMode){
		System.out.println("<CashcardInputListener> - register() : payment mode registered");
		this.paymentMode = paymentMode;
	}
}
